package com.example.demo.ws.hzuoj.mapper;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.example.demo.ws.hzuoj.entity.UserRole;

@Mapper
public interface UserRoleMapper  extends BaseMapper<UserRole> {
   
   @Select("${sql}")
   public List<UserRole> selectBySql(@Param("sql") String sql);
   
   @Select("select * from user_role where 1=1 ${sql}")
   public List<UserRole> selectBySeachParam(@Param("sql") String sql,@Param("searchParam") Map<String, Object> searchParam,Page<UserRole> page); 
   
   @Select("select * from user_role where 1=1 ${sql}")
   public List<UserRole> selectBySeachParam(@Param("sql") String sql,@Param("searchParam") Map<String, Object> searchParam); 
}
